Passed
Push — develop ( 1e5184...79e3ca )
by Andrew
21:38
created

webpack.settings.js ➔ ???   A

Complexity

Conditions 1
Paths 2

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 2
dl 0
loc 1
rs 10
nop 0
1
// webpack.settings.js - webpack settings config
2
3
// node modules
4
require('dotenv').config();
5
6
// Webpack settings exports
7
// noinspection WebpackConfigHighlighting
8
module.exports = {
9
    name: "SEOmatic",
10
    copyright: "nystudio107",
11
    paths: {
12
        src: {
13
            base: "./src/assetbundles/seomatic/src/",
14
            css: "./src/assetbundles/seomatic/src/css/",
15
            js: "./src/assetbundles/seomatic/src/js/"
16
        },
17
        dist: {
18
            base: "./src/assetbundles/seomatic/dist/",
19
            clean: [
20
                '**/*'
21
            ]
22
        },
23
        templates: "./src/templates/"
24
    },
25
    urls: {
26
        publicPath: () => process.env.PUBLIC_PATH || "",
27
    },
28
    vars: {
29
        cssName: "styles"
30
    },
31
    entries: {
32
        "dashboard": "dashboard.js",
33
        "seomatic": "seomatic.js",
34
        "seomatic-meta": "seomatic-meta.js",
35
        "twig-editor": "twig-editor.js",
36
        "javascript-editor": "javascript-editor.js",
37
    },
38
    babelLoaderConfig: {
39
        exclude: [
40
            /(node_modules|bower_components)/
41
        ],
42
    },
43
    copyWebpackConfig: [
44
    ],
45
    devServerConfig: {
46
        public: () => process.env.DEVSERVER_PUBLIC || "http://localhost:8080",
47
        host: () => process.env.DEVSERVER_HOST || "localhost",
48
        poll: () => process.env.DEVSERVER_POLL || false,
49
        port: () => process.env.DEVSERVER_PORT || 8080,
50
        https: () => process.env.DEVSERVER_HTTPS || false,
51
    },
52
    manifestConfig: {
53
        basePath: ""
54
    },
55
    purgeCssConfig: {
56
        paths: [
57
            "./src/templates/**/*.{twig,html}",
58
            "./src/assetbundles/seomatic/src/vue/**/*.{vue,html}"
59
        ],
60
        whitelist: [
61
            "./src/assetbundles/seomatic/src/css/components/**/*.{css}",
62
            "./node_modules/bootstrap-tokenfield/dist/css/bootstrap-tokenfield.css"
63
        ],
64
        whitelistPatterns: [],
65
        extensions: [
66
            "html",
67
            "js",
68
            "twig",
69
            "vue"
70
        ]
71
    },
72
    saveRemoteFileConfig: [
73
    ],
74
    createSymlinkConfig: [
75
    ],
76
};
77